package com.lgkj.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.lgkj.R;

/**
 * Created by Administrator on 2018/6/21 0021.
 */

public class ShopTypeAdapter extends RecyclerView.Adapter<MyViewHolder> {
    private Context context;

    public ShopTypeAdapter(Context context) {
        this.context = context;
    }

    @NonNull
    @Override
    public MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.item_news, null);
        MyViewHolder myViewHolder = new MyViewHolder(view);
        return myViewHolder;
    }

    @Override
    public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {
        
    }

    @Override
    public int getItemCount() {
        return 10;
    }
}

class MyViewHolder extends RecyclerView.ViewHolder {
    ImageView iv_name;

    public MyViewHolder(View itemView) {
        super(itemView);
        iv_name = itemView.findViewById(R.id.iv_title);
    }
}

